package com.atfusu.service;

import com.atfusu.base.BaseService;
import com.atfusu.bean.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * Title:
 * Author: fusu
 * DateTime:  2022/12/4
 * Description:
 **/
public interface PermissionService extends BaseService<Permission> {

    List<Map<String, Object>> findPermissionByRoleId(Long roleId);

    void addPermissionRoleRelationShip(Long roleId, Long[] permissionIds);

    List<Permission> getPermissionByAdmin(Long id);

    List<String> findPermissionCodeByAdminId(Long adminId);
}
